package linkedlist;

/**
 * Created by Stay on 2017/5/3  17:43.
 */
public class NodeList<T> {

    private Node<T> head;   //头节点

    private int pos = 0; //节点的位置

    private int size;

    private final static int DEFAULT_CAPACITY = 16;


    public NodeList(){
        this.head = null;
    }

    public NodeList(T data){
        head.data = data;
    }

    /**
     * 插入算法的思路:
     *
     * @param t
     */
    public void insert(T t){

    }



    private static class Node<T> {

        private T data;

        private Node<T> next;

        public Node() {
            data = null;
        }

        public Node(T data) {
            this.data = data;
        }

    }


}
